﻿@using Coslen.Framework.Helpers
@model Coslen.TahorCRM.Domain.Entities.ViewModels.Editing.ContactRelationshipEditViewModel

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>ContactRelationship</legend>

		@Html.Partial("_CreateOrEdit", Model)
        
        @Html.HiddenFor(model => model.source)
		
        <p>
            @Html.SaveOrCancelSet(Model.sourceUrl)
        </p>

    </fieldset>
}

@if (string.IsNullOrWhiteSpace(Model.source))
{
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
}
